<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWorshipPptsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('worship_ppts', function (Blueprint $table) {
            $table->increments('id')->comment('ID');
            $table->integer('hymn_id')->nullable()->comment('主礼诗歌');
            $table->string('response_bible', 50)->nullable()->comment('启应经文');
            $table->integer('choir_id')->nullable()->comment('献唱诗歌');
            $table->string('praise_id', 50)->nullable()->comment('敬拜诗歌');
            $table->string('preach_title', 50)->nullable()->comment('证道题目');
            $table->string('preach_lection', 50)->nullable()->comment('证道经文');
            $table->timestamp('worship_date')->nullable()->comment('主日日期');
            $table->timestamp('created_at')->nullable()->comment('创建时间');
            $table->timestamp('updated_at')->nullable()->comment('更新时间');
            $table->softDeletes()->comment('删除时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('worship_ppts');
    }
}
